package the.workshop.bu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lei.liu
 * @since 2020-06-15
 */
@Data
@TableName("bu_customer")
public class Customer extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户名称
     */
    @TableField("name")
    private String name;

    /**
     * 编号
     */
    @TableField("customer_code")
    private String customerCode;

    /**
     * 法人
     */
    @TableField("legal")
    private String legal;

    /**
     * 标签
     */
    @TableField("tag")
    private String tag;

    /**
     * 星级
     */
    @TableField("star")
    private Integer star;

    /**
     * 税号
     */
    @TableField("tax_number")
    private String taxNumber;

    /**
     * 身份证号
     */
    @TableField("id_number")
    private String idNumber;
    /**
     * 微信号
     */
    @TableField("wx_number")
    private String wxNumber;

    /**
     * 认证更新时间
     */
    @TableField("auth_modify_time")
    private String authModifyTime;

    /**
     * 业务员ID
     */
    @TableField("sales_id")
    private String salesId;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 状态更改时间
     */
    @TableField("status_time")
    private Date statusTime;

    /**
     * 跟进时间
     */
    @TableField(value = "follow_time", updateStrategy = FieldStrategy.IGNORED)
    private Date followTime;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    private String industry;

    private String area;

    @TableField("register_fund")
    private String registerFund;
    @TableField("register_date")
    private Date registerDate;

    /**
     * 公司地址
     */
    @TableField("address")
    private String address;

    /**
     * 营业执照号码
     */
    @TableField("cert_number")
    private String certNumber;

    /**
     * 营业执照发送日期
     */
    @TableField("cert_date")
    private Date certDate;

    /**
     * 开户银行
     */
    @TableField("bank_name")
    private String bankName;

    /**
     * 对公账号
     */
    @TableField("bank_number")
    private String bankNumber;

    /**
     * 纳税等级
     */
    @TableField("tax_level")
    private String taxLevel;

    /**
     * 税务登录密码
     */
    @TableField("tax_password")
    private String taxPassword;

    /**
     * 对公流水年
     */
    @TableField("bill_water")
    private String billWater;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 所属银行（4大行）
     */
    @TableField("bank4_name")
    private String bank4Name;

    /**
     * 4大行常用卡号
     */
    @TableField("bank4_number")
    private String bank4Number;

    /**
     * 股东
     */
    @TableField("stockholder")
    private String stockholder;

    private String timeTag;

    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", customerCode='" + customerCode + '\'' +
                ", legal='" + legal + '\'' +
                ", tag='" + tag + '\'' +
                ", star=" + star +
                ", taxNumber='" + taxNumber + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", authModifyTime='" + authModifyTime + '\'' +
                ", salesId='" + salesId + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
